package cn.silver.module.system.service;

import cn.silver.framework.mybatis.service.IBaseService;
import cn.silver.module.system.bean.AvatarBean;
import cn.silver.module.system.domain.SysUserAvatar;
import cn.silver.module.system.param.AvatarParam;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author zhouxiaobo
 */
public interface ISysUserAvatarService extends IBaseService<SysUserAvatar, AvatarParam, AvatarBean> {
    /**
     * 上传文件
     *
     * @param file
     * @param userId
     * @return
     */
    String upload(String userId, MultipartFile file);

    String executeAvator(String id, String avatar);
}
